package com.pig4cloud.pig.village.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 福利资源
 * @author limbray.li
 * @date 2021/7/25
 */
@Data
@TableName("resource_welfare")
public class WelfareResource {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	@JsonIgnore
	private LocalDateTime createTime;
	@JsonIgnore
	private LocalDateTime updateTime;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	@TableLogic(value = "0",delval = "1")
	private String delFlag;
	@JsonIgnore
	private Integer tenantId;

	@ApiModelProperty("金额")
	private BigDecimal amount;
	@ApiModelProperty(value = "福利Id")
	private Long welfareId;
	@ApiModelProperty("年份")
	private Integer year;
}
